# coding: utf-8
from . import db, BaseModel


class Teacher(db.Model):
    __tablename__ = 'teacher'

    auto_id = db.Column(db.Integer, primary_key=True)
    teacher_id = db.Column(db.BigInteger, index=True, info='教工号')
    password = db.Column(db.String(255, 'utf8mb4_general_ci'), info='密码')
    teacher_name = db.Column(db.String(255))
    avatar = db.Column(db.LargeBinary, info='头像')
    phone = db.Column(db.String(11), info='电话')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue())
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue())
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue())
